#####################################################################
#COMBOBOXES
#####################################################################

##########
# Combo Entry
##########

style "combo-frame"
{
	
	xthickness							= 1
	ythickness							= 1
	
	bg[NORMAL]							= "#ffffff"
	bg[ACTIVE]							= "#ffffff"
	bg[INSENSITIVE]						= "#ffffff"
	
	engine "experience"
	{		
		group "comboframe_shadow" = "shadow_in_normal"
		{
			shadow						= OUT, ETCHED_IN
			fill 0 {	color				= base[NORMAL]}
			padding						= { 0, 0, -1, 0 }

		}
		
				
	}
}

###

style "window-frame"
{
	
	xthickness							= 1
	ythickness							= 1

	bg[NORMAL]							= "#ffffff"
	bg[ACTIVE]							= "#ffffff"
	bg[INSENSITIVE]						= "#ffffff"
	
	engine "experience"
	{		

		group "windowframe_shadow" = "shadow_in_normal"
		{
			shadow							= OUT, ETCHED_IN
		}
		
		group "windowframe_line" = "menu_hline"
		{
			function					= LINE
		}
		
	}
}

###

style "combo-list"
{
	
	xthickness	= 0
	ythickness	= 1
	
	GtkWidget::focus_padding	= 2
	
	engine "experience"
	{	

		group "combo_shadowkiller"
		{
			function						= SHADOW
		}
		
	}
}


###


style "comboboxentry" = "default"
{

	GtkButton::child_displacement_y			= 1
	
	
	 engine "experience"
	 {
	 	group "comboboxentry_entry_focus_rtl" = "comboboxentry_entry_focus"
		{
			text_direction					= RTL
			mirror							= HORIZONTAL
		}
		
		group "comboboxentry_entry_focus" = "shadow_in_normal"
		{
			property "has-focus"						= TRUE
			
			image 1{		padding			= { 0, -1, 0 , 0 }}
			
			image 2 {	file				= "images/shadows/combo_entry_focus.png"
						recolor "#ff0000"	= base[selected]
						border				= { 1, 1, 1, 1 }
						draw_components		= BORDER }
		}

	 	group "comboboxentry_entry_normal_rtl" = "comboboxentry_entry_normal"
		{
			text_direction					= RTL
			mirror							= HORIZONTAL
		}
		
		group "comboboxentry_entry_normal" = "shadow_in_normal"
		{			
			image 1 {		padding			= { 0,-1,0,0 }}
		}
		
	 	group "comboboxentry_entry_insensitive_rtl" = "comboboxentry_entry_insensitive"
		{
			text_direction					= RTL
			mirror							= HORIZONTAL
		}
		
		group "comboboxentry_entry_insensitive" = "shadow_in_insensitive"
		{			
			image 1 {		padding			= { 0,-1,0,0 }}
		}
		
		###############################
		
		group "comboboxentry_button_focuskiller" = "focuskiller"

		group "comboboxentry_button_normal_rtl" = "comboboxentry_button_normal"
		{
			text_direction					= RTL
			padding							= { 2, 4, 2, 2 }
			fill 9 {	padding				= { -1, -4, -1, -1 } }
			image 11 {	padding				= { -2, -5, -2, -2 } }
		}
		
		group "comboboxentry_button_normal" = "scroll_button_normal"
		{
			padding						= { 4, 2, 2, 2 }
			
			fill 9 {		padding			= { -4, -1, -1, -1 } }
			
			image 10 {	dont_draw		= TRUE }
			
			image 11 {	file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						padding			= { -5, -2, -2, -2 }
						opacity			= 0.5
						draw_components	= BORDER
						interpolation_type	= NEAREST}
		}
		
		group "comboboxentry_button_prelight_rtl" = "comboboxentry_button_prelight"
		{
			text_direction					= RTL
			
			padding							= { 2, 4, 2, 2 }
			fill 9 {	padding				= { -1, -4, -1, -1 } }
			image 11 {	padding				= { -2, -5, -2, -2 } }
		}
		
		group "comboboxentry_button_prelight" = "scroll_button_prelight"
		{	
			padding						= { 4, 2, 2, 2 }
			
			fill 9 {		padding			= { -4, -1, -1, -1 } }
			
			image 10 {	dont_draw		= TRUE }
			
			image 11 {	file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						padding			= { -5, -2, -2, -2 }
						draw_components	= BORDER
						interpolation_type	= NEAREST
						opacity			= 0.5 }
		}
		
		group "comboboxentry_button_active_rtl" = "comboboxentry_button_active"
		{
			text_direction					= RTL
			
			padding							= { 2, 4, 2, 2 }
			fill 9 {	padding				= { -1, -4, -1, -1 } }
			image 11 {	padding				= { -2, -5, -2, -2 } }
		}
		
		group "comboboxentry_button_active" = "scroll_button_active"
		{
			padding						= { 4, 2, 2, 2 }
			
			fill 9 {		padding			= { -4, -1, -1, -1 } }
			
			image 10 {	dont_draw		= TRUE }
			
			image 11 {	file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						padding			= { -5, -2, -2, -2 }
						draw_components	= BORDER
						interpolation_type	= NEAREST
						opacity			= 0.5 }
		}
		
		group "comboboxentry_button_insensitive_rtl" = "comboboxentry_button_insensitive"
		{
			text_direction					= RTL
			padding							= { 2, 4, 2, 2 }
			fill 9 {	padding				= { -1, -4, -1, -1 } }
			image 11 {	padding				= { -2, -5, -2, -2 } }
		}
		
		group "comboboxentry_button_insensitive" = "scroll_button_insensitive"
		{
			padding						= { 4, 2, 2, 2 }
			
			fill 9 {		dont_draw		= TRUE }
			image 10 {	dont_draw		= TRUE }
			
			image 11 {	file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						padding			= { -5, -2, -2, -2 }
						draw_components	= BORDER
						interpolation_type = NEAREST
						opacity			= 0.5 }
		}

		group "arrow_combo_normal_rtl" = "arrow_combo_normal"
		{
			text_direction 				= RTL
			padding						= {-3, 0, 0, 0}
		}
		group "arrow_combo_prelight_rtl" = "arrow_combo_prelight"
		{
			text_direction 				= RTL
			padding						= {-3, 0, 0, 0}
		}
		group "arrow_combo_active_rtl" = "arrow_combo_active"
		{
			text_direction 				= RTL
			padding						= {-3, 0, 0, 0}
		}
		group "arrow_combo_insensitive_rtl" = "arrow_combo_insensitive"
		{
			text_direction 				= RTL
			padding						= {-3, 0, 0, 0}
		}
		
		group "arrow_combo_normal" = "arrow_down_normal-template"
		{
			padding						= {2, 0, 1, 0}
		}
		group "arrow_combo_prelight" = "arrow_down_prelight-template" { state = PRELIGHT }
		group "arrow_combo_active" = "arrow_down_active-template" { state = ACTIVE }
		group "arrow_combo_insensitive" = "arrow_down_insensitive-template" { state = INSENSITIVE }

	}
}


style "comboboxentry-list" = "comboboxentry"
{
	engine "experience"
	{

		group "comboboxentry-list_button_normal_rtl" = "comboboxentry_button_normal"
		{
			text_direction					= RTL
			padding						= { 2, 4, 1, 1 }
			fill 9 {		padding			= { -4, -1, -1, -1 } }
		}
		
		group "comboboxentry-list_button_normal" = "comboboxentry_button_normal"
		{
			padding						= { 4, 2, 1, 1 }			
			fill 9 {		padding			= { -4, -1, -1, -1 } }			
			image 10 {	dont_draw		= TRUE }			
			image 11 {	dont_draw		= TRUE }
		}
		
		group "comboboxentry-list_button_prelight_rtl" = "comboboxentry_button_prelight_rtl"
		{
			text_direction					= RTL
			padding						= { 2, 4, 1, 1 }
			fill 9 {		padding			= { -4, -1, -1, -1 } }
		}
		
		group "comboboxentry-list_button_prelight" = "comboboxentry_button_prelight"
		{	
			padding						= { 4, 2, 1, 1 }			
			fill 9 {		padding			= { -4, -1, -1, -1 } }			
			image 10 {	dont_draw		= TRUE }			
			image 11 {	dont_draw		= TRUE }
		}
		
		group "comboboxentry-list_button_active_rtl" = "comboboxentry_button_active_rtl"
		{
			text_direction					= RTL
			padding						= { 2, 4, 1, 1 }
			fill 9 {		padding			= { -4, -1, -1, -1 } }
		}
		
		group "comboboxentry-list_button_active" = "comboboxentry_button_active"
		{
			padding						= { 4, 2, 1, 1 }			
			fill 9 {		padding			= { -4, -1, -1, -1 } }			
			image 10 {	dont_draw		= TRUE }			
			image 11 {	dont_draw		= TRUE }
		}
		
		group "comboboxentry-list_button_insensitive_rtl" = "comboboxentry_button_insensitive"
		{
			text_direction					= RTL
			padding						= { 2, 4, 1, 1 }
			fill 9 {		padding			= { -4, -1, -1, -1 } }
		}
		
		group "comboboxentry-list_button_insensitive" = "comboboxentry_button_insensitive"
		{
			padding						= { 4, 2, 1, 1 }			
			fill 9 {		padding			= { -4, -1, -1, -1 } }			
			image 10 {	dont_draw		= TRUE }			
			image 11 {	dont_draw		= TRUE }
		}
	}
}


##########
# Combo Box
##########

style "combobox" = "default"
{

	xthickness							= 2
	ythickness							= 2
	GtkButton::child_displacement_y			= 1
	GtkWidget::interior_focus				= 0
	
	
	engine "experience" {

		group "combobox_focuskiller" = "focuskiller"
	
		group "combobox_focus_rtl" = "combobox_focus"
		{
			text_direction					= RTL
			padding							= { 2, 0, 2, 2 }
			
			fill 9 {	padding				= { -1, 0, -1, -1 } }
			image 10 {	padding				= { -2, 0, -2, -2 } }
			image 20 {	xpos				= -1 ws }
			image 30 {	xpos				= -1 ws }
			image 40 {	xpos				= -1 ws }
			image 50 {	xpos				= -1 ws }
		}
	
		group "combobox_focus" = "combobox_normal"
		{
			property "has-focus"						= TRUE
			image 10 { opacity				= 1 }
		}
		
		group "combobox_normal_rtl" = "combobox_normal"
		{
			text_direction					= RTL
			
			padding							= { 2, 0, 2, 2 }
			
			fill 9 {	padding				= { -1, 0, -1, -1 } }
			image 10 {	padding				= { -2, 0, -2, -2 } }
			image 20 {	xpos				= -1 ws }
			image 30 {	xpos				= -1 ws }
			image 40 {	xpos				= -1 ws }
			image 50 {	xpos				= -1 ws }
		}
		
		group "combobox_normal" = "scroll_button_normal"
		{
			padding						= {0, 2, 2, 2 }
		
			fill 9 {		padding			= {0 , -1, -1, -1 } }
			image 10 {	dont_inherit		= TRUE
						file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						opacity			= 0.5
						padding			= { 0, -2, -2 ,-2 }
						interpolation_type	= NEAREST
						draw_components	= BORDER }
			
			image 19 { 	dont_inherit		= TRUE
						dont_draw		= TRUE }
			image 20 {	width			= 15 px
						xpos			= 1 ws
						draw_components	= ALL }
			image 30 {	width			= 15 px
						xpos			= 1 ws }
			image 40 {	width			= 15 px
						xpos			= 1 ws }
			image 50 {	width			= 15 px
						xpos			= 1 ws}
		}
		
		group "combobox_prelight_rtl" = "combobox_prelight"
		{
			text_direction					= RTL
			
			padding							= { 2, 0, 2, 2 }
			
			fill 9 {	padding				= { -1, 0, -1, -1 } }
			image 10 {	padding				= { -2, 0, -2, -2 } }
			image 20 {	xpos				= -1 ws }
			image 30 {	xpos				= -1 ws }
			image 40 {	xpos				= -1 ws }
			image 50 {	xpos				= -1 ws }
		}
		
		group "combobox_prelight" = "scroll_button_prelight"
		{
			padding			= {0, 2, 2, 2 }
		
			fill 9 {		padding			= {0 , -1, -1, -1 } }
			image 10 {	dont_inherit		= TRUE
						file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						padding			= { 0, -2, -2 ,-2 }
						interpolation_type	= NEAREST
						draw_components	= BORDER }
			
			image 19 { 	dont_inherit		= TRUE
						dont_draw		= TRUE }
			image 20 {	width			= 15 px
						xpos			= 1 ws
						draw_components	= ALL }
			image 30 {	width			= 15 px
						xpos			= 1 ws }
			image 40 {	width			= 15 px
						xpos			= 1 ws }
			image 50 {	width			= 15 px
						xpos			= 1 ws}
		}
		
		group "combobox_active_rtl" = "combobox_active"
		{
			text_direction					= RTL
			
			padding							= { 2, 0, 2, 2 }
			
			fill 9 {	padding				= { -1, 0, -1, -1 } }
			image 10 {	padding				= { -2, 0, -2, -2 } }
			image 20 {	xpos				= -1 ws }
			image 30 {	xpos				= -1 ws }
			image 40 {	xpos				= -1 ws }
			image 50 {	xpos				= -1 ws }
		}
		
		group "combobox_active" = "scroll_button_active"
		{
			padding			= {0, 2, 2, 2 }
		
			fill 9 {		padding			= {0 , -1, -1, -1 } }
			image 10 {	dont_inherit		= TRUE
						file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border				= { 1,1,1,1}
						padding				= { 0, -2, -2 ,-2 }
						draw_components		= BORDER
						interpolation_type	= NEAREST }
			
			image 19 { 	dont_inherit		= TRUE
						dont_draw		= TRUE }
			image 20 {	width			= 15 px
						xpos			= 1 ws
						draw_components	= ALL }
			image 30 {	width			= 15 px
						xpos			= 1 ws }
			image 40 {	width			= 15 px
						xpos			= 1 ws }
			image 50 {	width			= 15 px
						xpos			= 1 ws}
		}
		
		group "combobox_insensitive_rtl" = "combobox_insensitive"
		{
			text_direction					= RTL
			
			padding							= { 2, 0, 2, 2 }
			
			fill 9 {	padding				= { -1, 0, -1, -1 } }
			image 10 {	padding				= { -2, 0, -2, -2 } }
			image 20 {	xpos				= -1 ws }
			image 30 {	xpos				= -1 ws }
			image 40 {	xpos				= -1 ws }
			image 50 {	xpos				= -1 ws }
		}
		
		group "combobox_insensitive" = "scroll_button_insensitive"
		{
			padding			= {0, 2, 2, 2 }
		
			fill 9 {		color			= bg[NORMAL]
						padding			= {0 , -1, -1, -1 } }
			image 10 {	dont_inherit		= TRUE
						file				= "images/shadows/in.png"
						recolor "#ff0000"	= base[selected]
						border			= { 1,1,1,1}
						padding			= { 0, -2, -2 ,-2 }
						draw_components	= BORDER
						interpolation_type	= NEAREST }
			
			image 19 { 	dont_inherit		= TRUE
						dont_draw		= TRUE }
			image 20 {	width			= 15 px
						xpos			= 1 ws
						draw_components	= ALL }
			image 30 {	width			= 15 px
						xpos			= 1 ws }
			image 40 {	width			= 15 px
						xpos			= 1 ws }
			image 50 {	width			= 15 px
						xpos			= 1 ws}
		}


		group "combobox_arrow_normal" = "arrow_down_normal-template" { padding = { 0, 1, 0, 0 } }
		group "combobox_arrow_prelight" = "arrow_down_prelight-template" { padding = { 0, 1, 0, 0 } }
		group "combobox_arrow_active" = "arrow_down_active-template" { padding = { 0, 1, 0, 0 } }
		group "combobox_arrow_insensitive" = "arrow_down_insensitive-template" { padding = { 0, 1, 0, 0 } }

		group "combobox_vline"
		 {
		 	function					= LINE
		 	orientation				= VERTICAL
		 }



	}
}

